package net.hust.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import net.hust.service.UserService;

import com.opensymphony.xwork2.ActionContext;

@Controller @Scope("prototype")
public class UserAction {
    @Resource UserService userService;
    
	public String execute(){
		ActionContext.getContext().put("users", userService.list());
		return "list";
	}
}
